import { useState } from "react";
import "./index.scss";
import G from "./G";
const App = () => {
  //手写一个折叠菜单
  const nav = [
    {
      label: "首页",
      list: [{ label: "home1" }, { label: "home2" }, { label: "home3" }],
    },
    {
      label: "资讯",
      list: [
        {
          label: "今日资讯",
        },
        {
          label: "昨日资讯",
        },
      ],
    },
    {
      label: "热点",
      list: [
        {
          label: "热点资讯",
        },
        {
          label: "亮点资讯",
        },
      ],
    },
  ];
  return (
    <div>
      <G nav={nav} className='nav-bar'></G>
    </div>
  );
};

export default App;
